package initialization

import (
	common "common/database/commoninit"
	"project_video_srv/internal/models/dao"
)

func init() {
	Init()
	MySQLInit()
	RedisInit()
}

func Init() {
	common.Init("../appconfig_video_srv.yaml")
	common.NaCosInit()
}

func MySQLInit() {
	var sli []interface{}
	sli = append(sli, &dao.Video{})
	common.MySQLInit(sli)
}

func RedisInit() {
	common.RedisInit()
}
